#ifndef LOGINSTATUS_H
#define LOGINSTATUS_H

#include "loginstatus_global.h"
#include <QDialog>
#include <QStandardItemModel>
#include "../CommunicateDelegate/hmicommunicate.h"

namespace Ui {
class LoginStatus;
}

class  LoginStatus : public QDialog
{
    Q_OBJECT

public:
        explicit LoginStatus( GlobalData *globalDataIn,QWidget *parent = 0);
        ~LoginStatus();

       /**
        * @brief foundControllerIpList          寻找控制器ＩＰ
        */
       void foundControllerIpList();

       void changeLanguage();

signals:
    /**
     * @brief scanControllerIp                  扫描控制器ＩＰ
     */
    void scanControllerIp();
    /**
     * @brief loginErrorInformation             登录信息界面
     */
    void loginErrorInformation(QString sendIP);

    /**
     * @brief clearFindTimerSignal              关闭窗口时候,关闭IP扫描
     */
    void clearFindTimerSignal();

public slots:
    void on_scanbutton_clicked();

    void on_loginbutton_clicked();

private slots:

    void on_quitbutton_clicked();
public:
    /**
    * @brief controllerIp1扫描到的控制器ＩＰ
    */
   QVector<QString> controllerIp;

private:
    GlobalData *globalData;
    Ui::LoginStatus *ui;

    QStandardItemModel *model;

    QAbstractItemModel *modessl;

};

#endif // LOGINSTATUS_H
